<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
<h:head>
<title>Versemant</title>
</h:head>
<h:body>
	<h:form >

	<p:panelGrid columns="2" >
        
        <p:outputLabel value="Montant à verser" />
        <p:inputText value="#{newOperationFormulaireController.montantAVerser}" />
        
        
 
  	<p:commandButton value="Verser" icon="ui-icon-check" action="#{newOperationFormulaireController.Verser()}" oncomplete="PF('dlg').show()" update="dlg"/>
  	<p:commandButton value="Retour" action="#{newOperationFormulaireController.Retour()}" />
	
	</p:panelGrid>	
	
	<p:dialog header="Opération réussie" resizable="false" widgetVar="dlg" id="dlg">
        <p:panelGrid  columns="2" columnClasses="label, value">
            <h:outputText value="Montant versé" />
            <h:outputText value="#{newOperationFormulaireController.montantAVerser}"/>
            
            <h:outputText value="Montant Actuel" />
            <h:outputText value="#{newOperationFormulaireController.client.solde}"/>
            
     	</p:panelGrid>
    </p:dialog> 
	
		
	
	</h:form>
</h:body>
</html>